package cn.apthink.calendar;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkCalendar {
	public final static String WeekTemplateDefault="week-template-default";
	private String departmentId;
	private String weekTemplateId;
	private LocalDate startDate;
	
	public WorkCalendar(String departmentId, String weekId, String startDate) {
		this.departmentId =departmentId;
		this.weekTemplateId = weekId;
		this.startDate = LocalDate.parse(startDate);
	}
	
	public static List<WorkCalendar> testData() {
		List<WorkCalendar> ws = new ArrayList<WorkCalendar>();
		ws.add(new WorkCalendar("factory", WeekTemplateDefault, "2024-12-15"));
		return ws;
	}
	
	public static List<WorkCalendar> testDatas() {
		List<WorkCalendar> ws = testData();
		ws.add(new WorkCalendar("floor", "week-test", "2025-02-15"));
		ws.add(new WorkCalendar("l1", WeekTemplateDefault, "2025-03-15"));
		return ws;
	}
}
